import request from "../index";

export function getPageListData(url, queryInfo) {
  return request.post({
    url,
    data: queryInfo,
  });
}

export function deletePageData(url) {
  return request.delete({
    url,
  });
}

export function createPageData(url, newData) {
  return request.post({
    url,
    data: newData,
  });
}

export function editPageData(url, editData) {
  return request.patch({
    url,
    data: editData,
  });
}
